﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Q.M.Finance.Application.IServices;
using Q.M.Finance.Domain.Entity;
using Q.M.Finance.Infrastruecure.IRepository;
using Q.M.Finance.Infrastruecure.Repository;

namespace Q.M.Finance.Write.API.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class Invoice_typeWriteController : ControllerBase
    {
        private readonly IInvoice_typeServices invoice_TypeServices;
        public Invoice_typeWriteController(IInvoice_typeServices invoice_TypeServices)
        {
            this.invoice_TypeServices = invoice_TypeServices;
        }
        /// <summary>
        /// 显示开票类型表
        /// </summary>
        /// <returns></returns>
        [HttpGet]
       public List<invoice_type> Getinvoice_type()
        {
            return invoice_TypeServices.Getinvoice_type();
        }
    }
}
